package com.dm.shop.service;

import com.dm.shop.entity.Product;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dm.shop.entity.User;
import com.dm.shop.vo.Result;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author MyBatisPlusGenerater-Saiya Wang
 * @since 2021-07-20
 */
public interface ProductService extends IService<Product> {
    //增
    Integer addProduct(Product product);
    //改
    Result editProduct(Product product);
    //查
    Result getAllProductInfo(int page,int size);
    //删
    Result delProduct(int id);
    //根据关键词搜索
    Result keySearch(String keyword);
}
